<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <title>Captain Test Report</title>
    <!--<link href="tablecloth/tablecloth.css" rel="stylesheet" type="text/css" media="screen"/>-->
    <!--<script type="text/javascript" src="tablecloth/tablecloth.js"></script>-->
    <style type="text/css">
table {
	font: normal 75%/150% Verdana, Arial, Helvetica, sans-serif;
	border-collapse: collapse;
	border: 3px solid #f0f8ff;
	border-top: 5px double #87CEFA;
	border-bottom: 5px double #87CEFA;
}
th {
	font: bold 1.1em/120% Verdana, Arial, Helvetica, sans-serif;
	padding: 5px 10px;
	font-variant: small-caps;
	color: #047;
	font-weight: bold;
	text-align: left;
	letter-spacing: -1px;
}
thead th {
	border: 1px solid #87CEFA;
	white-space: nowrap;
	background: #F0F8FF;
}
tbody td ,tbody th {
	padding: 5px 10px;
	background: #fff;
	color: #000;
}
tbody th {
	color: #047;
	font-weight: normal;
	font-variant: normal;
	font-size: 1em;
}
tbody tr.odd, tbody tr.oddError {
    border: 1px solid #87CEFA;
}
tbody tr.odd td, tbody tr.odd th, tbody tr.oddError td {
    background: #F0F8FF;
}
tfoot td, tfoot th {
	border: none;
	padding-top: 10px;
}
caption {
	font-family: "Georgia", serif;
	letter-spacing: 5px;
	font-style: italic;
	text-align: left;
	text-indent: 2em;
	text-transform: uppercase;
	font-size: 150%;
	padding: 10px 0;
	color: #047;
}
table a:link {
	color: #DC143C;
}
table th a:link {
	color: #047;
	text-decoration: none;
}
table a:visited{
	color: #036;
	text-decoration: line-through;
}
table a:hover{
	color: #000;
	text-decoration:none;
}
table a:active{
	color: #000;
}

.Error{
    background: #C00 !important;
}

        </style>


</head>
<body>
<table>

    <thead>
    <tr>
        <th>File</th>
        <th>Type</th>
        <th>Best</th>
        <th>Latest</th>
        <th>Diff</th>
        <th>Error</th>
    </tr>
    </thead>
    <tbody>
    <#assign counter = 0>

        <#foreach fileCoverage in list>
            <#foreach coverage in fileCoverage.coverageList>
                <#if type == "any" || type = coverage.type>
                    <#assign trCss = (counter % 2 == 0)?string("","odd")>
                    <#assign tdError = (coverage.diff < 0)?string("Error","")>
                    <tr class="${trCss}${tdError}">
                        <td>${fileCoverage.fileName}</td>
                        <td>${coverage.type}</td>
                        <td>${coverage.bestPercentCovered?string("0.#%")}</td>
                        <td>${coverage.lastPercentCovered?string("0.#%")}</td>
                        <td>${coverage.diff?string("0.#%")}</td>
                        <td class="${tdError}">
                            <#if coverage.diff < 0>Error</#if></td>
                    </tr>
                    <#assign counter=counter + 1>
                </#if>
            </#foreach>
        </#foreach>
    </tbody>
</table>

</body>
</html>